package com.example.aidrawavatar;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.TextView;

import androidx.annotation.Nullable;

public class TextViewStrike extends androidx.appcompat.widget.AppCompatTextView {
    public TextViewStrike(Context context) {
        super(context);
    }

    public TextViewStrike(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public TextViewStrike(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    protected void onDraw(Canvas canvas) {
        Paint paint = getPaint();
        paint.setStyle(Paint.Style.STROKE);
        paint.setStrokeWidth(2);
        super.onDraw(canvas);
    }
}
